package org.arduomo.serial.ui;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

import org.jfree.ui.RefineryUtilities;

public class DemoPainting {

    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
            }
        });
    }
    
    private static void createAndShowGUI() {
        System.out.println("Created GUI on EDT? "+
                SwingUtilities.isEventDispatchThread());
        JFrame f = new JFrame("Swing Paint Demo");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setSize(900,600);
        
        GraphPanel gP=new GraphPanel();
        f.setContentPane(gP);
        f.setLocationRelativeTo(null);
        f.setVisible(true);
        
       

//        RefineryUtilities.centerFrameOnScreen(f);
        
//        
//        //another example
//        CombinedXYPlotDemo1 demo = new CombinedXYPlotDemo1(
//                "JFreeChart : CombinedXYPlotDemo1");
//        demo.pack();
//        RefineryUtilities.centerFrameOnScreen(demo);
//        demo.setVisible(true);
    }
}
